import request from '@/utils/request'

// 获取-首页顶部一级分类
export const getCategoryAPI = () => {
  return request({
    url: '/home/category/head'
  })
}

// 获取-热门品牌数据
export const brandListApi = params => {
  return request({
    url: '/home/brand',
    params
  })
}

// 获取- 轮播图地址
export const getBannerListAPI = params => {
  return request({
    url: '/home/banner',
    params
  })
}

// 获取-新鲜好物
export const getNewGoodsListAPI = params => {
  return request({
    url: '/home/new',
    params
  })
}

// 获取-人气推荐
export const getHomeHotListAPI = () => {
  return request({
    url: '/home/hot'
  })
}

// 获取-热门品牌
export const getHotBrandListAPI = params => {
  return request({
    url: '/home/brand',
    params
  })
}
